// 深拷贝
export function deepClone(params: any) {
    // 筛选普通类型
    if (typeof params != 'object' || params == null) {
        return params
    }
    let clone = Array.isArray(params) ? [] : {}
    for (const key in params) {
        if (params.hasOwnProperty(key)) {
            clone[key] = deepClone(params[key])
        }
    }
    return clone as Object
}